package cn.phecda.boot.tenant.test.appication;

import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * <p> 数据表租户配置 </p>
 *
 * @author : wanpinwei
 */
@Slf4j
@Profile("tenant-data-table")
@Configuration
@ComponentScan({"cn.phecda.boot.tenant.test.table.jpa",
        "cn.phecda.boot.tenant.test.table.mybatis"})
@EntityScan("cn.phecda.boot.tenant.test.table.jpa")
@EnableJpaRepositories("cn.phecda.boot.tenant.test.table.jpa")
@MapperScan("cn.phecda.boot.tenant.test.table.mybatis")
public class TenantDataTableConfiguration {
    @PostConstruct
    public void postConstruct() {
        log.info("Tenant Data Table Configuration");
    }



}
